package com.hanliy.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

/**
 * @author hanyulin
 * @apiNote 测试嵌套查询
 * @date 2021/12/21 9:23
 */
@Data
public class PeopleDTO {

    @NotNull(message = "id不能为空")
    @ApiModelProperty(value = "id")
    private Long id;

    @NotNull(message = "AdminDTO不能为空")
    @Valid
    private AdminDTO adminDTO;


}
